/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvc.example.presentation.events;

import java.util.EventObject;

/**
 *
 * @author zeta
 */
public class DataEvent extends EventObject  {
    public static final int CONTENTS_CHANGED = 0;
    public static final int NEW_DATA = 1;
    public static final int REMOVE_DATA = 2;
    public static final int SELECTED_DATA = 3;
    public static int SAVE_DATA = 4;
    
    private final int type;
    private final int index;
    
   public DataEvent(Object source, int type, int index) {
        super(source);
	this.type = type;
	this.index = index;
    }

    public int getType() {
        return type;
    }

    public int getIndex() {
        return index;
    }
   
}
